<?php $this->load->view('header'); ?>
<?php $this->load->view('menus'); ?>

<br />
<table class="span-15">
	<tr>
		<th>Username:</th><td><?=$this->acc->user?></td>
	</tr><tr>
		<th>First name:</th><td><?=$this->acc->first_name?></td>
	</tr><tr>
		<th>Last name:</th><td><?=$this->acc->last_name?></td>
	</tr><tr>
		<th>Rol:</th><td>
			<? if($this->acc->is_admin) { ?>
				Administrator
			<? } else if($this->acc->is_manager) { ?>
				Manager
			<? } else { ?>
				Utilizator
			<? } ?>
		</td>
	</tr><tr>
		<th >Projects:</th><td>
			<ul>
			<? foreach( $this->Projects->fetch_all($this->acc) as $project ) { ?>
				<li><a href="<?=site_url('project/view/id/'.$project->project_id)?>"><?=$project->title?></a></li>
			<? } ?>	
			</ul>
		</td>
	</tr>
</table>

<?php $this->load->view('footer'); ?>
